import model.User;
import model.medelMin.Cla;
import model.medelMin.uTile.Demo1;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test1 {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("annotate-spring-config.xml");
        Cla cla = context.getBean("fun",Cla.class);
        System.out.println(cla.a);
        Cla cla1 = context.getBean("fun1",Cla.class);
        System.out.println(cla1.a);
        Cla cla2 = context.getBean("cla",Cla.class);
        cla2.a = 3;
        Cla cla3 = context.getBean("cla",Cla.class);
        System.out.println(cla3.a);
    }
}
